package com.bean;

import java.io.Serializable;

/**
 * 活动实体类
 */
public class Sales implements Serializable {

    private Integer id;
    private String name;
    private String content;
    private Integer num;
    private Integer commodityId;
    private Integer state;
    private Integer spare;

    private Commodity commodity;

    public Sales() {
    }

    public Sales(Integer id) {
        this.id = id;
    }

    public Sales(Integer id, String name, String content, Integer num, Integer commodityId, Integer state, Integer spare) {
        this.id = id;
        this.name = name;
        this.content = content;
        this.num = num;
        this.commodityId = commodityId;
        this.state = state;
        this.spare = spare;
    }

    @Override
    public String toString() {
        return "Sales{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                ", num=" + num +
                ", commodityId=" + commodityId +
                ", state=" + state +
                ", spare=" + spare +
                ", commodity=" + commodity +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSpare() {
        return spare;
    }

    public void setSpare(Integer spare) {
        this.spare = spare;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }
}
